/**
 * 
 */
package com.jolestar.yayaweibotong.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author jolestar@gmail.com
 *
 */
public class ForwordViewAction extends AbstractAction {

	private String view;
	
	
	public ForwordViewAction(String view) {
		super(view);
		this.view = view;
	}


	/* (non-Javadoc)
	 * @see com.jolestar.yayaweibotong.controller.AbstractAction#doAction(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	@Override
	protected String doAction(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		return view;
	}


	@Override
	public String getPath() {
		return "/"+view;
	}

}
